﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ETA.Entity
{
    public partial class JoinApplyForm
    {
        /// <summary>
        /// 关联用户信息
        /// </summary>
        public virtual User User { set; get; }

        /// <summary>
        /// 营业执照
        /// </summary>
        public virtual UploadFile YinyezhizhaoFile { set; get; }

        /// <summary>
        /// 经营资格证书
        /// </summary>
        public virtual UploadFile JinyingzigeFile { set; get; }

        /// <summary>
        /// 募集资料
        /// </summary>
        public virtual UploadFile MujiyaoxiangFile { set; get; }


        public virtual string SubmitTime
        {
            get
            {
                return CreateDate.ToString("yyyy-MM-dd HH:mm");
            }
        }

        public virtual string JoinApplyTypeStr
        {
            get
            {
                var res = String.Empty;
                switch (JoinApplyType)
                {
                    case 1:
                        res = "国内派遣机构";
                        break;
                    case 2:
                        res = "日本受入机构";
                        break;
                }
                return res;
            }
        }

        public virtual string HandlerStatusStr
        {
            get
            {
                var res = String.Empty;
                switch (HandlerStatus)
                {
                    case 0:
                        res = "审核中";
                        break;
                    case 1:
                        res = "成功加盟";
                        break;
                    case 2:
                        res = "恶意提交";
                        break;
                }
                return res;
            }
        }

        /// <summary>
        ///地址详细
        /// </summary>
        public virtual string FullAddress
        {
            get
            {
                return AddressProvice + " " + AddressCity + " " + AddressZone + " " + AddressSuffix;
            }
        }
    }
}
